<?php
$this->breadcrumbs=array(
	'Crawler Categories'=>array('index'),
	$model->name,
);

$this->menu=array(
	array('label'=>'List CrawlerCategories', 'url'=>array('index')),
	array('label'=>'Create CrawlerCategories', 'url'=>array('create')),
	array('label'=>'Update CrawlerCategories', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete CrawlerCategories', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage CrawlerCategories', 'url'=>array('admin')),
);
?>

<h1>View CrawlerCategories #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'name',
		'website.name',
		'pattern_link',
	),
)); ?>

<div>
  <b>Các mẫu tác</b>
  <table border="1" class="tblgiaoca">
    <tr class="bgsogiaoca">
      <td>STT</td>
      <td>Tên trường</td>
      <td>Mẫu</td>
      <td>Loại</td>
    </tr>
    <?php
    $i = 1;
    foreach($model1 as $m):
    ?>
    <tr>
      <td><?php echo $i;?></td>
      <td><?php echo $m->name;?></td>
      <td><?php echo $m->pattern;?></td>
      <td><?php echo Yii::app()->params['patternTypes'][$m->type];?></td>
    </tr>
    <?php 
    $i++;
    endforeach;?>
  </table>
</div>
